<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="static/css/styles.css"/>
    <link rel="stylesheet" href="static/bootstrap/dist/css/bootstrap.min.css"/>
    <script src="static/Flat-UI/dist/js/vendor/jquery.min.js"></script>
    <script src="static/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="static/Flat-UI/dist/js/flat-ui.min.js"></script>
    <title>基于大数据的图书分析系统</title>
</head>
<body>
<!-- Static navbar -->

<!--content-->
<div class="container">
    <div class="row thumbnail center">
        <div class="col-sm-12">
            <h1 class="text-center" style="margin-bottom: 30px">书籍信息</h1>
        </div>

        <div class="col-sm-6 search_u" >
            <form class="form-horizontal caption" action="/keyword_book" method="POST" onsubmit="return validate()">
            <label for="keyword" class="col-sm-5 seach_label">搜索</label>
                <div class="col-sm-5">
                    <input type="keyword" class="form-control" name="keyword" placeholder="输入标题">
                </div>
            </form>
        </div>
        <div class="col-sm-6 line-center">
            <a href="/addbook"><button class="btn btn-success">添加书籍</button></a>
        </div>
        <div class="col-sm-12 thumbnail">
            <div class="col-sm-3 line-center">编号</div>
            <div class="col-sm-2 line-center">标题</div>
            <div class="col-sm-2 line-center">作者</div>
            <div class="col-sm-2 line-center">出版商</div>
        <div class="list-group">
            {% for book in books %}
            <div class="col-sm-12  list-group-item" >
                <div class="col-sm-3 line-center" >{{book[0]}}</div>
                <div class="col-sm-2 line-center"><p>{{book[1]}}</p></div>
                <div class="col-sm-2 line-center"><p>{{book[2]}}</p></div>
                <div class="col-sm-2 line-center"><p>{{book[4]}}</p></div>
                <div class="col-sm-3 line-center">
                <a href="/delete_book?bookid={{book[0]}}" bookid="{{ book[0] }}"><button class="btn btn-danger">删除书籍</button></a>
                </div>
            </div>
            {% endfor %}
    </div>
</div>
    <div class="footer_u col-sm-12 center">
            <a href="/adminbooknextpage"><button class="btn btn-success">下一页</button></a>

        </div>

</body>
</html>